import 'package:architecture/os_size.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:study_demo/ui/main/pages/widgets_example_controller.dart';
import 'package:study_demo/ui/widgets_example/list_view_page.dart';
import 'package:study_demo/ui/widgets_example/pinned_header_sliver/pinned_header_sliver_page.dart';
import 'package:study_demo/ui/widgets_example/table_view/infinite_table_page.dart';
import 'package:study_demo/ui/widgets_example/table_view/merged_table_page.dart';
import 'package:study_demo/ui/widgets_example/table_view/simple_table_page.dart';
import 'package:study_demo/ui/widgets_example/text_button_page.dart';
import 'package:study_demo/ui/widgets_example/tree_view/custom_tree.dart';
import 'package:study_demo/ui/widgets_example/tree_view/simple_tree.dart';

import '../../../widgets/text_button.dart';
import '../../widgets_example/carousel_view/carousel_view_page.dart';

class WidgetsExamplePage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return GetBuilder<WidgetsExampleController>(
        init: WidgetsExampleController(),
        builder: (controller) {
          return Container(
              margin: EdgeInsets.only(top: 20),
              height: windowHeight,
              child: Wrap(
                  alignment: WrapAlignment.start,
                  crossAxisAlignment: WrapCrossAlignment.start,
                  spacing: 20,
                  runSpacing: 20,
                  children: [
                    MyTextButton(
                      text: "TextButton",
                      confirm: () {
                        Get.to(TextButtonPage());
                      },
                    ),
                    // MyTextButton(
                    //   text: "Text",
                    //   confirm: () {},
                    // ),
                    // MyTextButton(
                    //   text: "IconButton",
                    //   confirm: () {},
                    // ),
                    // MyTextButton(
                    //   text: "TextField",
                    //   confirm: () {},
                    // ),

                    MyTextButton(
                      text: "list_view",
                      confirm: () {
                        Get.to(ListViewPage());
                      },
                    )
                  ]));
        });
  }
}
